package com.cqupt.tr.edgenode.service;

import api.BaseMessage;
import api.EdgeRequest;

import api.EdgeRequestWithAccount;
import com.cqupt.tr.edgenode.utils.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import redis.clients.jedis.Jedis;
import service.EdgeService;

@Service
public class EdgeServiceImpl implements EdgeService {

    @Autowired
    RedisUtils redisUtils;



    @Override
    public BaseMessage getContent(EdgeRequestWithAccount edgeRequest) {
        Jedis jedis = redisUtils.getJedis();
        try {
            String s = jedis.get(edgeRequest.getHandle() + ":" + edgeRequest.getIndexs());
            if (s.isEmpty()){

            }
        }catch (Exception e){

        }finally {
            jedis.close();
        }

        return null;
    }
}
